<%@ page import="cn.myschool.entity.Subject" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022/7/12
  Time: 11:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        pageContext.setAttribute("xiaoxi","data in page");
        request.setAttribute("xiaoxi","data in request");
        session.setAttribute("xiaoxi","data in session");
        application.setAttribute("xiaoxi","data in application");
        Subject s=new Subject();
        s.setSubjectname("如何和牛逼的人相处");
        request.setAttribute("sub",s);
        String []ar={"苹果","Xiangjia","狮子","老虎"};
        request.setAttribute("array",ar);
    %>
    <h1>${array}</h1>
    <h1>${array[23]}</h1>
<h1>2
    ${xiaoxi}
</h1>
<h2>${sessionScope.xiaoxi}</h2>
<h1>${sub}</h1>
<h1>${sub.subjectname}</h1>
<h1>${subject.sldkfj.sdflkjsdf.ssss}</h1>
</body>
</html>
